package com.example.cunwan_hd.Mapper;

import com.example.cunwan_hd.Pojo.UserPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    @Select("select * from user where name=#{name}")
    Map<String,String> login(UserPojo userPojo);

    @Select("INSERT INTO user (name, password) VALUES (#{name}, #{password})")
    void  register(UserPojo userPojo);

}
